<script>
	function toLogin(e) {
		uni.reLaunch({
			url:'/uni_modules/uni-id-pages/pages/login/login-withpwd'
		})
	}
	export default {
		onLaunch: function() {
		},
		onShow: function() {
			uniCloud.onNeedLogin(toLogin)
		},
		onHide: function() {
			uniCloud.offNeedLogin(toLogin)
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	.van-overlay{
		z-index: 998!important;
	}
	.pointer{
		cursor: pointer;
		&:hover{
			color: #cc8124;
		}
	}
	.flex{
		display: flex;
		align-items: center;
	}
	.van-overlay.self-overlay{
		background: rgba(0, 0, 0, 0)!important;
	}
	@for $i from 1 through 50 {
		.m-#{$i}{
			margin: $i + px!important;
		}
		.mt-#{$i}{
			margin-top: $i + px!important;
		}
		.mr-#{$i}{
			margin-right: $i + px!important;
		}
		.mb-#{$i}{
			margin-bottom: $i + px!important;
		}
		.ml-#{$i}{
			margin-left: $i + px!important;
		}
	}
</style>
